#set($title = "智能会议预定系统-管理员-预约")
#includeFootable

<table class="footable table" data-filter="#filter" data-page-size="10" data-page-previous-text="上一页" data-page-next-text="下一页" data-page-navigation=".pagination">
    <thead>
        <tr>
            <th data-hide="all">
                预约ID
            </th>
            <th data-sort-initial="true" data-toggle="true">
                用户工号
            </th>
            <th>
                会议室
            </th>
            <th data-hide="all">
                用户ID
            </th>
            <th>
                开始时间
            </th>
            <th>
                结束时间
            </th>
            <th>
                会议标题
            </th>
            <th data-hide="all">
                会议描述
            </th>
            <th data-sort-ingore="true">
                操作
            </th>
        </tr>
    </thead>
    <tbody>
        #foreach($book in $bookTool.getAllMeetingBooks())
        <tr meetingId="$book.getId()">
            <td>
                $book.getId()
            </td>
            <td>
                $book.workerId
            </td>
            <td>
                $meetingTool.getMeetingName($book.getMeetingId())
            </td>
			 <td>
                $book.userId
            </td>
            <td>
                $date.format("yyyy-MM-dd HH:mm:ss",$book.getBookStartTime())
            </td>
            <td>
                $date.format("yyyy-MM-dd HH:mm:ss",$book.getBookEndTime())
            </td>
            <td>
                $!book.getMeetingTitle()
            </td>
            <td>
                $!book.getMeetingDescription()
            </td>
            <td>
                <button class="ui-button-primary" href="/books/modify/$book.getId()" target="_myself">
                    查看
                </button>
        <button type="button" href="/books/add" class="ui-button-success" value="新增" target="_myself"/>新增
            </td>
        </tr>
        #end
    </tbody>
    <tfoot>
        <tr>
            <td colspan="7">
                <div class="pagination pagination-centered">
                </div>
            </td>
        </tr>
    </tfoot>
</table>
#includeJs(["admin/admin"])